class Person:
    type = '人'

    def __init__(self, name, age):
        self.name = name
        self.age = age

p1 = Person("zhang",12)
p2 = Person("jack",18)

# print(id(p1.type))
# print(id(p2.type))

a =1
b=a
a=3

print(id(a))
print(id(b))

#修改类属性必须通过类来改
print(p1.type)
Person.type = '猪'
print(p1.type)
